import requests from "./requests";
//获取产品详情信息的接口
export const reqGetGoodsInfo = (skuId) => {
  return requests.get(`/item/${skuId}`);
};
//将产品添加到购物车中(获取更新某一个产品个数)
// /api/cart/addToCart/{skuId}/{skuNum}  POST
export const reqAddOrUpdateShopCart = (skuId, skuNum) => {
  return requests.post(`/cart/addToCart/${skuId}/${skuNum}`);
};
